<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <ul id="container"></ul>
  <script>
   const ul = document.getElementById('container')
   let total = 100000;
   let once = 20;
   let index = 0;
   loop(total,index);
   function loop(total){
     if(total <=0){
      return false;
     }
     setTimeout(() => {
       for(let i=0;i<once;i++){
        const liNode = document.createElement('li');
      liNode.innerText = Math.random() * total;
      ul.appendChild(liNode);
       }
       loop(total-once);
     }, 0);
   }
  </script>
</body>
</html>